const { createProxyMiddleware } = require('http-proxy-middleware');

module.exports = function (app) {
  // app.use(
  //   '/home',
  //   createProxyMiddleware({
  //     target: 'http://localhost:9999',
  //     changeOrigin: true,
  //   })
  // );
  app.use(
    '/upload',
    createProxyMiddleware({
      target: 'http://47.107.117.164:8888',
      changeOrigin: true,
    })
  );
};
